<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>标题页</title>
<SCRIPT LANGUAGE="JavaScript">
   function ismail(mail)
      {
        return(new RegExp(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/).test(mail));
      }
</script>
</head>
<body>
<input type=text name="txt1" value="booknew@sina.com">
<input type=button value="测试" onClick="javascript:alert(ismail(txt1.value))">
</body>
</html>
